package org.jeecg.modules.asset.tenantManagement.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.asset.tenantManagement.entity.TenantManagement;
import org.jeecg.modules.asset.tenantManagement.entity.TenantManagementView;
import org.jeecg.modules.asset.tenantManagement.mapper.TenantManagementMapper;
import org.jeecg.modules.asset.tenantManagement.service.ITenantManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 租户管理
 * @Author: jeecg-boot
 * @Date:   2020-04-01
 * @Version: V1.0
 */
@Service
public class TenantManagementServiceImpl extends ServiceImpl<TenantManagementMapper, TenantManagement> implements ITenantManagementService {

    @Autowired TenantManagementMapper tenantManagementMapper;

    /**
     * 分页查询
     * @param page
     * @return
     */
    @Override
    public IPage<TenantManagementView> queryTenant(Page<TenantManagementView> page) {
        return this.tenantManagementMapper.queryTenant(page);
    }
}
